package com.wrenchserver.dao.sys;

import java.util.Set;

import com.wrenchserver.entity.sys.UserEntity;
import com.wrenchserver.pojo.sys.TUser;

public interface TUserDao {
    int deleteByPrimaryKey(Integer id);

    int insert(TUser record);

    int insertSelective(TUser record);

    TUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TUser record);

    int updateByPrimaryKey(TUser record);

	int createUser(UserEntity userEntity);
	
	public UserEntity getByUsername(String username);  
	  
    public Set<String> getRoles(String username);  
  
    public Set<String> getPermissions(String username);  
}